Safety function added to ensure key release
Old methods removed, new methods added for key pressing