Adds slide effects and keypress events