Fixed some compiler errors in InputReceiver and KeyboardAdapter.
Fixed compile time errors in InputReceiver and KeyboardAdapter