added keys state functions to Input class