Update keys controller and fix socket.emit('ready') again