Install Portal: Prelude and the TI-84 emulator with >these files and links here!<
The Aperture Science Handheld Portal Device is controlled by number keys 1-9; 8 cardinal directions surround the 5 key, which itself swaps which portal is replaced by your next shot. As such, the game is best controlled with WASD/arrow keys and the numpad.
Rebind your controls in Calculator > Options > Keys, in whatever configuration you like! My preferred keyboard layout is:
UP => [W]
LEFT => [A]
DOWN => [S]
RIGHT => [D]
2ND => [Numpad Enter] (Pick up box/Select)
CLEAR => [Esc] (Pause)
The game will typically go to sleep 3-4 minutes past the vent section of the game, so it is useful to have these keys bound to an easily-accessible row on the keyboard:
Debug > Reset Calculator => [Fn key above Numpad /]
Debug > Turn on calculator => [Numpad /]
Emulator > APPS => [Numpad *]
Emulator > DOWN => [Numpad -]
Emulator > ENTER=> [Numpad +]
Emulator > 2ND => [Numpad Enter]
Leaving the calculator off when pressing Reset will prevent RAM from clearing.
All set up? Enjoy!