added key ability, reading key and mouse