I had studied Japanese ______ keen interest before I went to study ______ Japan.
I had studied Japanese ______ keen interest before I went to study ______ Japan.
Explanation
"With keen interest" is the correct phrase to express the manner or attitude of studying.
"In Japan" correctly refers to the location where the studying took place.