Just use your top and bottom arrow keys to navigate through the tweets using Nav.js
Just pass to Nav.js the elements to be selected and then do whatever you want with callbacks:
var a = document.getElementsByClassName('tweet');
nav.init(a);
nav.callbacks.selected = function(node) {
node.style.backgroundColor = "#C0C0C0";
};
nav.callbacks.unselected = function(node) {
node.style.backgroundColor = "#fff";
};
nav.callbacks.pressed = function(key) {
if(key == 13) {
alert('Enter');
}
};
Nav.js allows you to manage page-based navigation by binding the left and right arrow keys.
nav.callbacks.previous = function(page) {
alert('We\'re at page '+page);
};
nav.callbacks.next = function(page) {
alert('We\'re at page '+page);
};