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 Calculator will go to sleep 5 minutes past the end of the screen-shake cutscene, producing an invalid room when turned back on, 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 your mid-run progress from clearing.
All set up? Enjoy!