Added the ability to specify down key presses when programmatically setting a settings.