Hello ,
After running a couple of tests, it appears that things are working as intended on our end. However, I would like to note that if you do not have the game selected and the game setup to receive input from the keyboard (Input mode game only or input mode Game and UI) the axis will only print out 0.0 as that is the default value. I would suggest running a test by setting the game mode to game only. I hope that this information helps.
Make it a great day