Added basic keyboard/mouse input functionality