moved all input code out of physics component