this code returns only the DOM element, not the jquery object
$(".btn")[0].toggleClass("pressed");
but if you want to toggle the class on the first specific button you should use this:
$($(".btn")[0]).toggleClass("pressed");