以下は、キャラクタ・コントローラの擬似コードである：

```
PROCEDURE handle_keyboard_input(event)
    IF event is a KEYDOWN event THEN
        IF event.key is UP arrow THEN
            Perform jump ability
        ELSE IF event.key is DOWN arrow THEN
            Perform slide ability
        IF event.key is UP arrow AND event.mod is SHIFT THEN
            Perform dash ability
        ELSE IF event.key is LEFT arrow THEN
            Perform move left ability
        ELSE IF event.key is RIGHT arrow THEN
            Perform move right ability
        ELSE IF event.key is SPACEBAR THEN
            Perform attack ability
    END IF
END PROCEDURE

WHILE program is running DO
    FOR each event in event queue DO
        IF event is a QUIT event THEN
            Quit program
        ELSE
            handle_keyboard_input(event)
    END FOR
END WHILE
```
Here is pseudocode how a character controller might look like: 

PROCEDURE handle_keyboard_input(event)
    IF event is a KEYDOWN event THEN
        IF event.key is UP arrow THEN
            Perform jump ability
        ELSE IF event.key is DOWN arrow THEN
            Perform slide ability
        IF event.key is UP arrow AND event.mod is SHIFT THEN
            Perform dash ability
        ELSE IF event.key is LEFT arrow THEN
            Perform move left ability
        ELSE IF event.key is RIGHT arrow THEN
            Perform move right ability
        ELSE IF event.key is SPACEBAR THEN
            Perform attack ability
    END IF
END PROCEDURE

WHILE program is running DO
    FOR each event in event queue DO
        IF event is a QUIT event THEN
            Quit program
        ELSE
            handle_keyboard_input(event)
    END FOR
END WHILE