Fixed key release bug