Just starting. (But a fast learner.)
If you're working at the command line, research the "bind" command
which is used to create macros and bind functions to keystrokes.
If you are using KDE, KDE allows you to customize keyboard shortcuts
to manipulate windows and activate the usual menu options on most
programs.
If that's not sufficient, the fvwm2 window manager goes even further
and allows moving the mouse pointer with keystrokes, among other
things.
However, it sounds like what you really need is KHotKeys which is a
tool in KDE for binding keystrokes to issue commands in various ways,
including mouse gestures. You can also use it to access the "extra"
keys on multimedia keyboards. You need KDE 3.2 or higher, I think, to
get the most useful version of it. And there is almost no
documentation apparently although there is an example file. The home
page appears to be defunct as well. Lubos Lunak from Prague wrote it
way back I guess around 1999 and I guess it was dormant for quite a
while, then was improved for KDE 3.2.
I Googled for info on it and found a lot of references to it and some
example configuration files to do certain things, but almost no
documentation on how to use it in general. It uses a configuration
file in your home directory called:
$HOME/.kde/share/config/khotkeysrc (where $HOME is your home
directory).
You edit this file by going to the KDE Control Center -> Regional &
Accessibility -> KHotKeys
Hope this helps.