Add support for keyboard and mouse input.