Keyboard release function