Remove some action at distance, move input processing to own sub.
Remove some action at distance, move input processing to own sub.

princeofdarkness76/sial.org-scripts,princeofdarkness76/sial.org-scripts,princeofdarkness76/sial.org-scripts,thrig/scripts,thrig/scripts,thrig/scripts,princeofdarkness76/sial.org-scripts,thrig/scripts,thrig/scripts,princeofdarkness76/sial.org-scripts,thrig/scripts