How to Replicate Hover Mechanics

what are you trying to do exactly? and what result are you getting?

since character movement is replicated you could just do it on server but may get lag jitter.

regarding your code i think your input key will be null except on the owning client since its not replicated which could break your code