Fixes a bug in Engine's Input class