Commit 2, fixing HandleInput()