Add function to WallpaperSwitcher for keyboard interaction.