Add states and 'constants' to key entry

States keep track of whether currently waiting, loading, done, or empty.
Allows bar to move up and down.

Working on #4.