When using Terminal it is sometimes useful to have your Page-Up, Page-Down, Home and End keys (the four arrow keys on Mac keyboards) function as you would expect. This is especially useful when using more or less to view text files or man pages. Unfortunately the default key-bindings for Terminal do not provide this. Here is a quick fix that works for me on OSX 10.5.6.
Open Terminal then go to Terminal -> Preferences -> Settings -> Keyboard. Scroll down to find the key that you want to change and highlight it. Click the edit button at the bottom of the window. A new window will open like the one pictured above. Set everything as shown and replace the string to send to the shell with the appropriate one from the following list:
Key Escape Sequence
End \033[4~
Home \033[1~
Page-Down \033[6~
Page-Up \033[5~
Enjoy.

