keyboard control setup like XNA

Unable to test, computer too slow. Maybe works?