Update input manager
Debug code