Added complete Key and Mouse support