Added key states and sound test