Tu código está perfecto. Sólo tienes que transformar de vuelta a character y detectar si el evento tiene el modificador shiftKey
var texto = document.getElementById('capture');
texto.addEventListener('keydown''keypress', function(keyboardEvent) {
let code = keyboardEvent.keyCode;//.key
let character = String.fromCharCode(keyboardEvent.keyCode);
if(!keyboardEvent.shiftKey) {
character=character.toLowerCase();
}
console.log({code:code, character:character})
});
<input type="text" id="capture">