Where are the images currently located?
How about a viewer program which will go through all images in current folder sequentially, and when you press one of those keys, it will move the image to appropriate subfolder, and show the next image?
This program can be delivered in 2 hours.