keyUp method

bool keyUp(
  1. KeyCodes key
)

Checks if a specific key was released during the current frame.

Returns true if the key was released in this frame, false otherwise. Returns false if key is KeyCodes.Unknown.

Implementation

bool keyUp(KeyCodes key) {
  return (key == KeyCodes.Unknown) ? false : _keyUp[key] ?? false;
}