fix key peress errors