Centeralized virtual keypress and the inputmanager