The Nazis used Keynesian measures to help recover Germany from the economic depression, which as you might know stuck Germany very hard.
That's not really true. The Nazis incurred vast government spending in order to militarize the country, not to recover the economy. That happened too, but it's doubtful that they had much of any expectation or that it would, or understanding of why. Keynesianism proscribes spending during bad economic times, but also saving during good times. The Nazis never saved.
A government can hardly be called Keynesian simply because it happens to spend, even during a depression. That's just too simple. Reagan spent a lot of money, and for a time it boosted the slow economy. But Reagan was no Keynesian. We know this, because he did not start saving when the economy improved.
The Nazis are often considered extreme right-wingers. In your view, economics is the defining issue of left vs right. But were the Nazis to the far right economically?
No.
I could argue that the Nazis are right-wingers. And that they are, certainly, extreme. That does not mean that they have to be extreme in the sense of being 'more right' than others.
But of course, the issue of economics is not everything, although I would choose it as the defining issue. Rather, I believe that at the time, and to some extent today, there was a discussion of nationalism vs internationalism. The left, then as now, were internationalists. The right, by and large, were nationalists. And the Nazis were indeed extreme nationalists.
So then, you might argue, libertarians are not 'right' by this measure. And I would agree. However, it is quite commonly argued that libertarians are left on social issues, but right on economic issues, so this is not surprising.
But if they are mixed, why is it still usually claimed that libertarians are, on the whole, right-wingers? I would say that this is because of their own priorities. Libertarians have overwhelmingly supported right-wing coalitions. Libertarians frequently caucus with US Republicans, rarely with Democrats, despite the Democratic Party being much more ideologically diverse.