keyboard controll class fixed